<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			 var num = 3;
			 var str = '10';
			 console.log(num + str);
			 console.log(num + parseInt(str));
			 console.log(parseInt(3.99));
			 alert('hello js');
			 </script>
	</head>
	<body>
		<input id = "inputId" type="text" value="Hello JS"/>
		<button onclick="clickMe()">点击</button>
		<script type="text/javascript">
		function clickMe(){
			console.log('clickMe');
			var inputObj = document.getElementById('inputId');
			console.log(inputObj.value);
		}</script>
	</body>
</html>
